import { PROJECT_API_URL } from '../baseURL'
import axios from '../config'

export default {
    // 获取项目类型信息
    getType() {
        return axios({
            url: PROJECT_API_URL + '/dictionary/type',
            method: "GET",
            data: ''
        })
    },
    // 获取项目标记信息
    getTag() {
        return axios({
            url: PROJECT_API_URL + '/dictionary/tag',
            method: "GET",
            data: ''
        })
    },
    // 新增类型
    addType(value) {
        return axios({
            url: PROJECT_API_URL + '/dictionary/add/type',
            method: "POST",
            data: {
                value: value
            }
        })
    },
    // 新增标记
    addTag(value) {
        return axios({
            url: PROJECT_API_URL + '/dictionary/add/tag',
            method: "POST",
            data: {
                value: value
            }
        })
    },
    // 删除
    delete(id) {
        return axios.delete(`${PROJECT_API_URL}/dictionary/${id}`)
    }

}